﻿
namespace Xwork.SEO.WebSite
{
    public class SEOController : System.Web.Mvc.Controller
    {
        protected Db db = new Db();
        
        protected new User User
        {
            get
            {
                return (User)Session["user"];
            }
            set
            {
                Session["user"] = value;
            }
        }

        protected bool IsLogin
        {
            get { return this.User != null; }
        }


        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }
    }
}